Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding four arithmetic functions #70

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

reinermartin
Copy link
Contributor

I have added 4 functions: moebius, liouville, divisorcount, and divisorsum. They are all multiplicative in the sense that f(n m) = f(n) f(m) if n and m are relative prime, and they can easily be computed from the prime factorization (see https://en.wikipedia.org/wiki/Arithmetic_function#Multiplicative_functions). Documentation and tests are included.

This is functionality for which a system like Mathematica has been useful in the past, but it would be good to have it in Julia. I plan to add more such functions and more detailed documentation later.

@reinermartin
Copy link
Contributor Author

I don't know how (technically) I can resolve this trivial conflict in api.md (the version where the 4 new functions are present is the valid one). Am I even allowed to do it? Help!

@Keno Keno requested a review from rfourquet November 18, 2019 21:27
@fkastner
Copy link

I'd also like to have this (esp. the Möbius μ). Any chance to revive this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants